﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ProductionbyUser.aspx.cs" Inherits="StatisticData_ProductionStatistic_ProductionbyUser" Title="按测试员统计产量" %>

<%@ Register Assembly="ZedGraph.Web" Namespace="ZedGraph.Web" TagPrefix="cc1" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script type="text/javascript" src="../../js/my97datepicker/WdatePicker.js"></script>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
<div>
    <br />
    <div style="float:left;clear:both; width: 896px; height: 37px;">    
        <asp:Panel ID="Panel1" runat="server">
                    起始时间：
                    <input type="text" runat="server" id="TextBox1" 
                    onfocus="WdatePicker({startDate:'%y-%M-%d 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})"/>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 终止时间：
                    <input type="text" runat="server" id="TextBox2" 
                    onfocus="WdatePicker({startDate:'%y-%M-%d 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})"/>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button ID="Button1" runat="server" Text="查 询" onclick="Button1_Click" />
        </asp:Panel> 
        <br />
    </div> 
    <div style="clear:both ">
        <br />
    <asp:Label ID="Label1" runat="server" Text="各测试员产能情况统计信息："></asp:Label>&nbsp;<br />
    <table style="width: 977px; height: 97px">
        <tr>
            <td style="width: 209px">
                <br />
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
        BackColor="White" BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3"
        CellSpacing="1" GridLines="None" OnPageIndexChanging="GridView1_PageIndexChanging" Width="290px">
        <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
        <Columns>
            <asp:BoundField DataField="UserID" HeaderText="工号" />
            <asp:BoundField DataField="Quantity" HeaderText="合格腔体数" >
                <HeaderStyle Wrap="False" />
            </asp:BoundField>
            <asp:BoundField DataField="Total" HeaderText="测试次数" />
        </Columns>
        <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
        <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
    </asp:GridView>
            </td>
            <td style="width: 288px; vertical-align: top;">
                <cc1:ZedGraphWeb ID="ZedGraphWeb1" runat="server" Height="375" OnRenderGraph="ZedGraphWeb1_RenderGraph"
                    Width="800" Visible="False">
                    <XAxis AxisColor="Black" Cross="0" CrossAuto="True" IsOmitMag="False" IsPreventLabelOverlap="True"
                        IsShowTitle="True" IsTicsBetweenLabels="True" IsUseTenPower="False" IsVisible="True"
                        IsZeroLine="False" MinSpace="0" Title="" Type="Linear">
                        <FontSpec Angle="0" Family="Arial" FontColor="Black" IsBold="True" IsItalic="False"
                            IsUnderline="False" Size="14" StringAlignment="Center">
                            <Fill AlignH="Center" AlignV="Center" Color="White" ColorOpacity="100" IsScaled="True"
                                IsVisible="True" RangeMax="0" RangeMin="0" Type="None" />
                            <Border Color="Black" InflateFactor="0" IsVisible="False" Width="1" />
                        </FontSpec>
                        <MinorGrid Color="Black" DashOff="5" DashOn="1" IsVisible="False" PenWidth="1" />
                        <MinorTic Color="Black" IsInside="True" IsOpposite="True" IsOutside="True" PenWidth="1"
                            Size="5" />
                        <MajorTic Color="Black" IsInside="True" IsOpposite="True" IsOutside="True" PenWidth="1"
                            Size="5" />
                        <Scale Align="Center" Format="g" FormatAuto="False" IsReverse="False" Mag="0" MagAuto="False"
                            MajorStep="1" MajorStepAuto="True" MajorUnit="Day" Max="0" MaxAuto="True" MaxGrace="0.1"
                            Min="0" MinAuto="True" MinGrace="0.1" MinorStep="1" MinorStepAuto="True" MinorUnit="Day">
                            <FontSpec Angle="0" Family="Arial" FontColor="Black" IsBold="False" IsItalic="False"
                                IsUnderline="False" Size="14" StringAlignment="Center">
                                <Fill AlignH="Center" AlignV="Center" Color="White" ColorOpacity="100" IsScaled="True"
                                    IsVisible="True" RangeMax="0" RangeMin="0" Type="None" />
                                <Border Color="Black" InflateFactor="0" IsVisible="False" Width="1" />
                            </FontSpec>
                        </Scale>
                        <MajorGrid Color="Black" DashOff="5" DashOn="1" IsVisible="False" PenWidth="1" />
                    </XAxis>
                    <Y2Axis AxisColor="Black" Cross="0" CrossAuto="True" IsOmitMag="False" IsPreventLabelOverlap="True"
                        IsShowTitle="True" IsTicsBetweenLabels="True" IsUseTenPower="False" IsVisible="False"
                        IsZeroLine="True" MinSpace="0" Title="" Type="Linear">
                        <FontSpec Angle="0" Family="Arial" FontColor="Black" IsBold="True" IsItalic="False"
                            IsUnderline="False" Size="14" StringAlignment="Center">
                            <Fill AlignH="Center" AlignV="Center" Color="White" ColorOpacity="100" IsScaled="True"
                                IsVisible="True" RangeMax="0" RangeMin="0" Type="None" />
                            <Border Color="Black" InflateFactor="0" IsVisible="False" Width="1" />
                        </FontSpec>
                        <MinorGrid Color="Black" DashOff="5" DashOn="1" IsVisible="False" PenWidth="1" />
                        <MinorTic Color="Black" IsInside="True" IsOpposite="True" IsOutside="True" PenWidth="1"
                            Size="5" />
                        <MajorTic Color="Black" IsInside="True" IsOpposite="True" IsOutside="True" PenWidth="1"
                            Size="5" />
                        <Scale Align="Center" Format="g" FormatAuto="False" IsReverse="False" Mag="0" MagAuto="False"
                            MajorStep="1" MajorStepAuto="True" MajorUnit="Day" Max="0" MaxAuto="True" MaxGrace="0.1"
                            Min="0" MinAuto="True" MinGrace="0.1" MinorStep="1" MinorStepAuto="True" MinorUnit="Day">
                            <FontSpec Angle="-90" Family="Arial" FontColor="Black" IsBold="False" IsItalic="False"
                                IsUnderline="False" Size="14" StringAlignment="Center">
                                <Fill AlignH="Center" AlignV="Center" Color="White" ColorOpacity="100" IsScaled="True"
                                    IsVisible="True" RangeMax="0" RangeMin="0" Type="None" />
                                <Border Color="Black" InflateFactor="0" IsVisible="False" Width="1" />
                            </FontSpec>
                        </Scale>
                        <MajorGrid Color="Black" DashOff="5" DashOn="1" IsVisible="False" PenWidth="1" />
                    </Y2Axis>
                    <MasterPaneBorder Color="Black" InflateFactor="0" IsVisible="True" Width="1" />
                    <MasterPaneFill AlignH="Center" AlignV="Center" Color="White" ColorOpacity="100"
                        IsScaled="True" IsVisible="True" RangeMax="0" RangeMin="0" Type="Solid" />
                    <PaneBorder Color="Black" InflateFactor="0" IsVisible="True" Width="1" />
                    <YAxis AxisColor="Black" Cross="0" CrossAuto="True" IsOmitMag="False" IsPreventLabelOverlap="True"
                        IsShowTitle="True" IsTicsBetweenLabels="True" IsUseTenPower="False" IsVisible="True"
                        IsZeroLine="True" MinSpace="0" Title="" Type="Linear">
                        <FontSpec Angle="-180" Family="Arial" FontColor="Black" IsBold="True" IsItalic="False"
                            IsUnderline="False" Size="14" StringAlignment="Center">
                            <Fill AlignH="Center" AlignV="Center" Color="White" ColorOpacity="100" IsScaled="True"
                                IsVisible="True" RangeMax="0" RangeMin="0" Type="None" />
                            <Border Color="Black" InflateFactor="0" IsVisible="False" Width="1" />
                        </FontSpec>
                        <MinorGrid Color="Black" DashOff="5" DashOn="1" IsVisible="False" PenWidth="1" />
                        <MinorTic Color="Black" IsInside="True" IsOpposite="True" IsOutside="True" PenWidth="1"
                            Size="5" />
                        <MajorTic Color="Black" IsInside="True" IsOpposite="True" IsOutside="True" PenWidth="1"
                            Size="5" />
                        <Scale Align="Center" Format="g" FormatAuto="False" IsReverse="False" Mag="0" MagAuto="False"
                            MajorStep="1" MajorStepAuto="True" MajorUnit="Day" Max="0" MaxAuto="True" MaxGrace="0.1"
                            Min="0" MinAuto="True" MinGrace="0.1" MinorStep="1" MinorStepAuto="True" MinorUnit="Day">
                            <FontSpec Angle="90" Family="Arial" FontColor="Black" IsBold="False" IsItalic="False"
                                IsUnderline="False" Size="14" StringAlignment="Center">
                                <Fill AlignH="Center" AlignV="Center" Color="White" ColorOpacity="100" IsScaled="True"
                                    IsVisible="True" RangeMax="0" RangeMin="0" Type="None" />
                                <Border Color="Black" InflateFactor="0" IsVisible="False" Width="1" />
                            </FontSpec>
                        </Scale>
                        <MajorGrid Color="Black" DashOff="5" DashOn="1" IsVisible="False" PenWidth="1" />
                    </YAxis>
                    <PaneFill AlignH="Center" AlignV="Center" Color="White" ColorOpacity="100" IsScaled="True"
                        IsVisible="True" RangeMax="0" RangeMin="0" Type="Solid" />
                    <ChartFill AlignH="Center" AlignV="Center" Color="White" ColorOpacity="100" IsScaled="True"
                        IsVisible="True" RangeMax="0" RangeMin="0" Type="Brush" />
                    <ChartBorder Color="Black" InflateFactor="0" IsVisible="True" Width="1" />
                    <FontSpec Angle="0" Family="Arial" FontColor="Black" IsBold="True" IsItalic="False"
                        IsUnderline="False" Size="16" StringAlignment="Center">
                        <Fill AlignH="Center" AlignV="Center" Color="White" ColorOpacity="100" IsScaled="True"
                            IsVisible="True" RangeMax="0" RangeMin="0" Type="None" />
                        <Border Color="Black" InflateFactor="0" IsVisible="False" Width="1" />
                    </FontSpec>
                    <Margins Bottom="10" Left="10" Right="10" Top="10" />
                    <Legend IsHStack="True" IsReverse="False" IsVisible="True" Position="Top">
                        <Location AlignH="Left" AlignV="Center" CoordinateFrame="ChartFraction" Height="0"
                            Width="0" X="0" Y="0">
                            <TopLeft X="0" Y="0" />
                            <BottomRight X="0" Y="0" />
                        </Location>
                        <Fill AlignH="Center" AlignV="Center" Color="White" ColorOpacity="100" IsScaled="True"
                            IsVisible="True" RangeMax="0" RangeMin="0" Type="Brush" />
                        <Border Color="Black" InflateFactor="0" IsVisible="True" Width="1" />
                        <FontSpec Angle="0" Family="Arial" FontColor="Black" IsBold="False" IsItalic="False"
                            IsUnderline="False" Size="12" StringAlignment="Center">
                            <Fill AlignH="Center" AlignV="Center" Color="White" ColorOpacity="100" IsScaled="True"
                                IsVisible="True" RangeMax="0" RangeMin="0" Type="Solid" />
                            <Border Color="Black" InflateFactor="0" IsVisible="False" Width="1" />
                        </FontSpec>
                    </Legend>
                </cc1:ZedGraphWeb>
            </td>
        </tr>
    </table>
    </div>
    </div>
    </ContentTemplate> 
    </asp:UpdatePanel> 
</asp:Content>

